package com.compomics.proteocloud.util;

import java.io.IOException;
import java.util.Properties;

import com.compomics.proteocloud.sqs.MessageManager;
import com.xerox.amazonws.sqs2.SQSException;

public class MessageDeleter {
	public static void main(String[] args) {
		try {
			// Get the Properties object.
			AWSUtils.loadAWSCredentials();
			Properties props = AWSUtils.getProperties();
			MessageManager msgManager = new MessageManager(props, "dataQueue");
			msgManager.receiveMessages();				
			System.out.println("DELETED MESSAGES");
		} catch (SQSException e) {
			e.printStackTrace();
		} catch (IOException e) {			
			e.printStackTrace();
		}

	}
}
